// 可选链

const info = {
  name: "frank",
  friend: {
    name: "lilei",
    girlFriend: {
      name: "hmm",
    },
  },
};

// console.log(info.friend.girlFriend.name);

console.log(info.friend?.girlFriend?.name);
